//
//  InsuranceAddressViewController.h
//  PhotoAnnotate
//
//  Created by Bassem El-Tamimi on 26.01.11.
//  Copyright 2011 ePapyrus GmbH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>

@class Insurance;
@class InsuranceViewController;

@interface InsuranceAddressViewController : UIViewController <UIAlertViewDelegate, UITextFieldDelegate, ABPeoplePickerNavigationControllerDelegate, ABPersonViewControllerDelegate> {
	Insurance *insuranceData;
	InsuranceViewController *insuranceViewController;
	
	IBOutlet UIButton *chooseAddressButton;
		
	IBOutlet UIScrollView *scrollView;
	IBOutlet UISegmentedControl *segmentedControl;
	IBOutlet UITextField *surnameField;
	IBOutlet UITextField *nameField;
	IBOutlet UITextField *streetAddressField;
	IBOutlet UITextField *postalCodeField;
	IBOutlet UITextField *cityField;
	IBOutlet UITextField *countryField;
	IBOutlet UITextField *emailField;
	IBOutlet UITextField *phoneField;
	
	BOOL keyboardIsVisble;
	
}

@property (nonatomic, retain) Insurance *insuranceData;
@property (nonatomic, retain) InsuranceViewController  *insuranceViewController;

@property (nonatomic, assign) BOOL keyboardIsVisble;

- (IBAction)showPeoplePickerController:(id)sender;

- (void)saveFieldData:(id)sender;



@end
